// backend/src/routes/index.js
import express from 'express';
import userRoutes from '../controllers/user/userController.js';
import roleRoutes from '../controllers/user/roleController.js';
import menuRouter from '../controllers/user/menuController.js';
import roleMenuRouter from '../controllers/user/roleMenuController.js';

const router = express.Router();

// 用户相关路由
router.use(userRoutes);

// 角色相关路由
router.use(roleRoutes);

// 菜单相关路由
router.use(menuRouter);

// 角色菜单相关路由
router.use(roleMenuRouter);

export default router;
